package com.ykht.proj.coupon.Enum;

public enum LookRoleTypeEnum {
	//0系统管理员 1公司 2品牌 3门店 4服务员
	LOOK_ROLE_TYPE_0(0,"系统管理员"),
	LOOK_ROLE_TYPE_1(1,"公司"),
	LOOK_ROLE_TYPE_2(2,"品牌"),
	LOOK_ROLE_TYPE_3(3,"门店"),
	LOOK_ROLE_TYPE_4(4,"服务员");

	private Integer value;
	private String desc;

	private LookRoleTypeEnum(Integer value, String desc) {
		this.value = value;
		this.desc = desc;
	}


	/**
	 * 根据val值获取desc
	 * @param val 1、0
	 * @return
	 */
	public static String getDescByVal(Integer val) {
		DelFlagEnum[] values = DelFlagEnum.values();
		for (DelFlagEnum oe : values) {
			if (oe.getValue().equals(val)) {
				return oe.getDesc();
			}
		}
		return null;
	}

	public Integer getValue() {
		return value;
	}

	public void setValue(Integer value) {
		this.value = value;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
}
